package com.cskaoyan.mapper;

import com.cskaoyan.bean.Collect;
import com.cskaoyan.bean.CollectExample;
import com.cskaoyan.bean.collect.AddorDeleteBean;
import com.cskaoyan.bean.collect.CollectListBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CollectMapper {
    long countByExample(CollectExample example);

    int deleteByExample(CollectExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Collect record);

    int insertSelective(Collect record);

    List<Collect> selectByExample(CollectExample example);

    Collect selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Collect record, @Param("example") CollectExample example);

    int updateByExample(@Param("record") Collect record, @Param("example") CollectExample example);

    int updateByPrimaryKeySelective(Collect record);

    int updateByPrimaryKey(Collect record);

    List<CollectListBean> selectCollectList(@Param("type")Integer type,@Param("userid")Integer userid);

    String addordelete(@Param("addorDeleteBean")AddorDeleteBean addorDeleteBean);

    Integer selectIsHaveCollect(@Param("addorDeleteBean")AddorDeleteBean addorDeleteBean,@Param("userid") Integer userid);

    void updateDelete(@Param("addorDeleteBean")AddorDeleteBean addorDeleteBean,@Param("userid")Integer userid);

    void insertCollect(@Param("addorDeleteBean")AddorDeleteBean addorDeleteBean,@Param("userid")Integer userid);

    Integer selecteDeleted(@Param("addorDeleteBean")AddorDeleteBean addorDeleteBean,@Param("userid")Integer userid);

    void deleteCollect(AddorDeleteBean addorDeleteBean, Integer userid);
}